package jUnit_tests;

import static org.junit.Assert.*;
import model.Address;
import model.Bidder;

import org.junit.Before;
import org.junit.Test;

/**
 * Junit test for the Bidder class.
 * 
 * @author Abdiel Cabrera
 *
 */
public class Junit_test_for_Bidder {
	
	private int blocked_bidder = 0;
	
	@Before
	public void setUp() throws Exception {
		
		Address address1 = new Address("123 crasy St", "", "B", "Miami", "FL", "33125");
		
		// String the_name, String the_userName, String the_password,
		// String the_phone, Address the_address, String the_email
		Bidder bidder = new Bidder("Abdiel", "Cabrera", "WTF", "23431", null, address1, "asdvsf@sgfr.com");
	    bidder.setMy_accessLevel(4);
	    bidder.blockBidder();
	    blocked_bidder = bidder.getMy_accessLevel();
	}

	@Test
	public void testblockBidder() {
		assertEquals("Block access level", blocked_bidder, -1);
	}
}
